﻿using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace Maticsoft.DAL
{
	/// <summary>
	/// 数据访问类:BookPics
	/// </summary>
	public partial class BookPics
	{
        public DataSet GetListByBookId(string strWhere)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select bp.*,b.BookName from BookPics bp left join Books b on bp.BookId=b.BookId ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            return DbHelperSQL.Query(strSql.ToString());
        }
	}
}

